<?php /* Smarty version 2.6.26, created on 2010-11-13 18:15:16
         compiled from users.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'users.tpl', 21, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if (isset ( $this->_tpl_vars['info_action'] )): ?>
	<div class="info i_red">
		<?php echo $this->_tpl_vars['info_action']; ?>

	</div>
<?php endif; ?>	
<h3>Studenci</h3>
<div class="practices_div">
	<table class="practices_tab">
		<tr style="color:#789;font-weight: bold">
			<td>Lp.</td>
			<td>Data rejestracji</td>
			<td>Imię</td>
			<td>Nazwisko</td>
			<td>Email</td>
			<td>Numer albumu</td>
			<td>Akcje</td>
		</tr>
		<?php $_from = $this->_tpl_vars['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['student'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['student']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['student']):
        $this->_foreach['student']['iteration']++;
?>
		<tr style="background-color:<?php echo smarty_function_cycle(array('values' => "#F6F6F6,white"), $this);?>
">
			<td><?php echo $this->_foreach['student']['iteration']; ?>
</td>
			<td><?php echo $this->_tpl_vars['student']['reg_date']; ?>
</td>
			<td><?php echo $this->_tpl_vars['student']['name']; ?>
</td>
			<td><?php echo $this->_tpl_vars['student']['surname']; ?>
</td>
			<td><?php echo $this->_tpl_vars['student']['email']; ?>
</td>
			<td><?php echo $this->_tpl_vars['student']['album_nr']; ?>
</td>
			<td>

				<a href ="users.php?show_id=<?php echo $this->_tpl_vars['student']['id']; ?>
" class="tip_trigger" ><span class="tip">Pokaż szczegóły</span><img src="../images/magnifier-left.png"/></a>
				&nbsp 			
				<a href ="users.php?remove_id=<?php echo $this->_tpl_vars['student']['id']; ?>
" class="tip_trigger" ><span class="tip">Usuń studenta</span><img src="../images/cross.png"/></a>
				
			</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
	<table>
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>